package sanlie1;

public class hashlink {
    protected int num=0;
    protected hashlink next=null;
    public void setNumber(int a){
        num=a;
    }
    public hashlink(){
        num=0;
    }

    @Override
    public String toString() {
        if(next!=null)
            return num+","+next;
        else
            return num+"\n"+"end";
    }
}
